package com.atguigu.crowd.service.api;

import com.atguigu.crowd.entity.Admin;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * @author zzqstart
 * @Description
 * @date 2022-08-28 1:42
 */
public interface AdminService {
    void saveAdmin(Admin admin);

    List<Admin> getAll();

    Admin getAdminByLoginAcct(String loginAcct);

    PageInfo<Admin> getAdminPage(String keyword, Integer pageNum, Integer pageSize);

    void remove(Integer adminId,Admin admin);

    Admin getAdminById(Integer adminId);

    void updateAdmin(Admin admin);
}
